import request from '@/utils/request'

/**
* 学生表分页查询
* @param {查询条件} data
*/
export function listAStudent(query) {
  return request({
    url: 'business/AStudent/list',
    method: 'get',
    params: query,
  })
}

/**
* 新增学生表
* @param data
*/
export function addAStudent(data) {
  return request({
    url: 'business/AStudent',
    method: 'post',
    data: data,
  })
}
/**
* 修改学生表
* @param data
*/
export function updateAStudent(data) {
  return request({
    url: 'business/AStudent',
    method: 'PUT',
    data: data,
  })
}
/**
* 获取学生表详情
* @param {Id}
*/
export function getAStudent(id) {
  return request({
    url: 'business/AStudent/' + id,
    method: 'get'
  })
}

/**
* 删除学生表
* @param {主键} pid
*/
export function delAStudent(pid) {
  return request({
    url: 'business/AStudent/' + pid,
    method: 'delete'
  })
}
